import { defineStore } from "pinia";
import { persistedstateConfig } from "@/stores/persistedstate";

const useRepairStore = defineStore("repair", {
  state: () => ({
    masterList: [], //接车师傅
    curOrder: {}, //当前订单详情
    examineList: [], //预检检查项目列表
    curReserveInfo: [], //当前预检填写的信息
    curProjectAccessoryInfo: [], //当前维修单填写的服务项目和配件
  }),
  getters: {},
  actions: {},
  persist: persistedstateConfig("repair", ["masterList"])
});
export default useRepairStore;
